﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yunlib.DAL;
using Yunlib.Entity;

namespace YunLib.BLL
{
    public class ReturnOrBrBLL
    {
        ReturnOrBrDAL DAL = new ReturnOrBrDAL();

        public BooksInfo GetBooksInfoByBarcode(string barCode)
        {
            return DAL.GetBooksInfoByBarcode(barCode);
        }

        public int GetBookIDByBarCode(string barCode)
        {
            return DAL.GetBookIDByBarCode(barCode);
        }

        public DataTable GetNewBooksInfoByBarcode(string barCode)
        {
            return DAL.GetNewBooksInfoByBarcode(barCode);
        }

        public DataTable GetNewBooksInfoByPage(string searchType, string searchStr, int page, int pageSize)
        {
            return DAL.GetNewBooksInfoByPage(searchType, searchStr, page, pageSize);
        }

        public DataTable GetUserLendByDzCode(string dzCode)
        {
            return DAL.GetUserLendByDzCode(dzCode);
        }

        public bool InsertLTKOneInfo(ChangeLogInfo model)
        {
            return DAL.InsertLTKOneInfo(model);
        }

        public ChangeKuInfo GetBorrowBooksInfoByBarcode(string barCode)
        {
            return DAL.GetBorrowBooksInfoByBarcode(barCode);
        }


        public DataTable GetChangeInfoByBarcode(string barCode)
        {
            return DAL.GetChangeInfoByBarcode(barCode);
        }

        public DataTable GetChangeInfoByDzCode(string dzCode)
        {
            return DAL.GetChangeInfoByDzCode(dzCode);
        }

        public DataTable GetChangeInfo(string dzCode, string barCode)
        {
            return DAL.GetChangeInfo(dzCode, barCode);
        }

        public DataTable GetBackLendLogByDzCode(string dz_code)
        {
            return DAL.GetBackLendLogByDzCode(dz_code);
        }

        public bool UpdateChangeKUReBackTime(string barCode, DateTime time, int reBorrowNum)
        {
            return DAL.UpdateChangeKUReBackTime(barCode, time, reBorrowNum);
        }

        public bool DeleteChangeInfoByBarCode(string  barCode)
        {
            return DAL.DeleteChangeInfoByBarCode(barCode);
        }
        public int GetOnceBorrowCount(string rdid)
        {
            return DAL.GetOnceBorrowCount(rdid);
        }

        public LocalBooks GetBookByBarCode(string barCode)
        {
            return DAL.GetBookByBarCode(barCode);
        }
        public Boolean AddCirculation(ChangeKuInfo model)
        {
            return DAL.AddCirculation(model);
        }

        public DataTable GetCirculationByUserId(string userId)
        {
            return DAL.GetCirculationByUserId(userId);
        }

        public DataTable wxGetNewBooksInfoByPage(string searchType, string searchStr, int page, int pageSize)
        {
            return DAL.wxGetNewBooksInfoByPage(searchType, searchStr, page, pageSize);
        }

        public DataTable wxGetUserLendByPage(string code, string dz_code, int page, int pageSize)
        {
            return DAL.wxGetUserLendByPage(code, dz_code, page, pageSize);
        }

        public DataTable wxGetNewBooksBySize(int size)
        {
            return DAL.wxGetNewBooksBySize(size);
        }

        public int wxUserLendCount(string code, string dz_code)
        {
            return DAL.wxUserLendCount(code, dz_code);
        }

        public int wxSearchCount(string searchType, string searchStr)
        {
            return DAL.wxSearchCount(searchType, searchStr);
        }

        public DataTable GetSIP2LendInfoByBarCode(string barCode)
        {
            return DAL.GetSIP2LendInfoByBarCode(barCode);
        }

        public DataTable GetSIP2LendInfoByDzCode(string dzCode)
        {
            return DAL.GetSIP2LendInfoByDzCode(dzCode);
        }

        public DataTable GetSIP2BookInfoByBarCode(string barCode)
        {
            return DAL.GetSIP2BookInfoByBarCode(barCode);
        }

        public DataTable GetcirculationParmar(string xnks, string jb, string dwdm)
        {
            return DAL.GetcirculationParmar(xnks, jb, dwdm);
        }

        public DataTable GetSip2BookDescByBarCode(string barCode)
        {
            return DAL.GetSip2BookDescByBarCode(barCode);
        }

        public DataTable GetSipLendBookPriceSUM(string dzCode)
        {
            return DAL.GetSipLendBookPriceSUM(dzCode);
        }
    }
 
}
